<?php

error_reporting(E_ALL);

/**
 * AplicacionWeb - class.VistaGenerica.php
 *
 * $Id$
 *
 * This file is part of AplicacionWeb.
 *
 * Automatically generated on 04.12.2011, 16:37:50 with ArgoUML PHP module 
 * (last revised $Date: 2010-01-12 20:14:42 +0100 (Tue, 12 Jan 2010) $)
 *
 * @author firstname and lastname of author, <author@example.org>
 */

if (0 > version_compare(PHP_VERSION, '5')) {
    die('This file was generated for PHP 5');
}

/* user defined includes */
// section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B1-includes begin
// section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B1-includes end

/* user defined constants */
// section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B1-constants begin
// section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B1-constants end

/**
 * Short description of class VistaGenerica
 *
 * @access public
 * @author firstname and lastname of author, <author@example.org>
 */
class VistaGenerica
{
    // --- ASSOCIATIONS ---


    // --- ATTRIBUTES ---

    /**
     * Short description of attribute plantillaHeader
     *
     * @access public
     * @var String
     */
    public $plantillaHeader = null;

    /**
     * Short description of attribute plantillaFooter
     *
     * @access public
     * @var String
     */
    public $plantillaFooter = null;

    // --- OPERATIONS ---

    /**
     * Short description of method Lista
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  datos
     * @param  msg
     * @return mixed
     */
    public function Lista($datos, $msg = null)
    {
        // section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B2 begin
		$datos=$this->miModelo->getAllRows();      
		$this->miVista->Lista($datos,@$this->mensage);
        // section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B2 end
    }

    /**
     * Short description of method Alta
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function Alta()
    {
        // section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B7 begin
        // section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B7 end
    }

    /**
     * Short description of method Edicion
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  datos
     * @return mixed
     */
    public function Edicion($datos)
    {
        // section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B9 begin
        // section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021B9 end
    }

    /**
     * Short description of method Borrar
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  datos
     * @return mixed
     */
    public function Borrar($datos)
    {
        // section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021BB begin
        // section 10-25-3-74-25c3b17:133af115f13:-8000:00000000000021BB end
    }

    /**
     * Short description of method showPlantilla
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  plantilla
     * @param  datos
     * @param  datosdet
     * @return mixed
     */
    public function showPlantilla($plantilla, $datos = null, $datosdet = null)
    {
        // section 127-0-0-1--15e66b79:1340b52dedc:-8000:0000000000001290 begin
		require_once($this->plantillaHeader);      
		require_once($plantilla);
		require_once($this->plantillaFooter);
        // section 127-0-0-1--15e66b79:1340b52dedc:-8000:0000000000001290 end
    }

    /**
     * Short description of method VistaGenerica
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  header
     * @param  footer
     * @return mixed
     */
    public function VistaGenerica($header = null, $footer = null)
    {
        // section 127-0-0-1--15e66b79:1340b52dedc:-8000:0000000000001292 begin
		if (!$header) {
        	$this->plantillaHeader= "VistaPlantillaHeader.php";        						
        } else
        	$this->plantillaHeader = $header;
        if (!$footer) {
        	$this->plantillaFooter = "VistaPlantillaFooter.php";
        }  else {
        	$this->plantillaFooter = $footer;
        }
        // section 127-0-0-1--15e66b79:1340b52dedc:-8000:0000000000001292 end
    }

} /* end of class VistaGenerica */

?>